

#ifndef BALANCE_H
#define BALANCE_H
//the file is to get node from balance server

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include"core_conf.h"

/**
 *this parse_buffer function is to parse the string got from balance to get the choosen node 
 */

extern struct sockaddr_in *parse_buffer(char *buffer);
/**
 * this get_dispathed function is being a dependent thread to get infomation from the balance server
 */
extern void * get_dispathed();


#endif
